package cn.xc.controller;

import cn.xc.domain.User;
import cn.xc.feign.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/pay")
public class PayCpntroller {

    @Autowired
    private UserService userService;

    @RequestMapping("/{id}")
    public User petById(@PathVariable("id")Long id){
        return userService.getById(id);
    }

}
